package com.xiaofeng.subject.domain.handler.subject;

import com.xiaofeng.subject.common.enums.SubjectInfoTypeEnum;
import com.xiaofeng.subject.domain.entity.SubjectOptionBO;
import com.xiaofeng.subject.domain.entity.SubjectInfoBO;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2024/01/27/14:36
 * @Description:
 */
public interface SubjectTypeHandler {

    /**
     * 枚举身份的识别
     * @return
     */
    SubjectInfoTypeEnum getHandleType();

    /**
     * 实际的题目插入
     * @param subjectInfoBO
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 实际的查询的题目
     * @param subjectId
     * @return
     */
    SubjectOptionBO query(int subjectId);
}
